/*
 * Project : Linuxbox
 * File    : UserManEdit.java
 * Version : 1.0
 * Author  : Kevin Zhang
 *
 * Copyright (c) 2000-2001 by Linuxbox, Inc.
 * All rights reserved.
 */
package linuxbox.admin.servlet;

import javax.servlet.http.*;

import linuxbox.admin.logic.*;
import linuxbox.common.*;

public class UserManEditAction extends Action {
	protected static String successJSP = null;
	
    public void doAction(HttpSession aSession, BoxSession aBoxSession, 
    HttpServletRequest req, HttpServletResponse res) throws Exception {
		int userID = Integer.parseInt(req.getParameter("USER_ID"));
	
		UserManager um = UserManager.getInstance();
		User user = um.getUser(userID);
		req.setAttribute("USER", user);
    	sendFile(successJSP, req, res);
	}

	public void setSuccessJSP(String str) {
		successJSP = str;
	}
}
